package study.db.postgresql.mapper.exampaper;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.Alias;
import study.db.postgresql.support.type.ArrayTypeHandler;

import java.io.Serializable;

@Data
@Alias("ExamPaperEO")
@TableName(value = "exam_paper", autoResultMap = true)
public class ExamPaperEO implements Serializable {

    @TableId
    private Long papId;

    @TableField(typeHandler = ArrayTypeHandler.class)
    private Long[] subjectId;
}
